<template>
  <div id="app">
   <Header/>
   <!-- 路由组件出口的地方 -->
   <router-view></router-view>
   <!-- v-show设置Footer的显示和隐藏 -->
   <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
//引入Header组件
import Header from "@/components/Header"
//引入Footer组件
import Footer from "@/components/Footer"


export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  mounted() {
      //派发请求三级联动数据
    this.$store.dispatch('home/categoryList')
  },
}
</script>

<style>

</style>
